cmake_minimum_required(VERSION 3.8)
project(aim_interfaces)

if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
  add_compile_options(-Wall -Wextra -Wpedantic)
endif()

# find dependencies
find_package(ament_cmake REQUIRED)
find_package(std_msgs REQUIRED)
find_package(geometry_msgs REQUIRED)
find_package(rosidl_default_generators REQUIRED)

rosidl_generate_interfaces(${PROJECT_NAME}
  "msg/Armor.msg"       # 单个装甲板消息
  "msg/Armors.msg"      # 多个装甲板消息
  "msg/Target.msg"      # 目标消息
  "msg/TrackerInfo.msg"   # 追踪信息
  "msg/GimbalControl.msg" # 控制消息
  "msg/BallisticCmd.msg"  # 弹道消息
  "msg/Imu.msg"           # IMU消息

  DEPENDENCIES          # 声明依赖的其他消息包
    std_msgs
    geometry_msgs
)

ament_package()
